#!/bin/bash

declare -i i=0
declare -i s=0
until [ $i -eq 100 ]
do
s=s+i
i=i+1
done

echo "s=$s"